package summer_vacation.liulee.month7.day20150730;
import java.util.Scanner;
/**
 * Created by Administrator on 2015/7/30.
 */
public class Java20 {
    public static void main(String[] args) {
        System.out.println("任意输入一组字符：");
        Scanner input=new Scanner(System.in);
        String j =input.nextLine();
        int m=0;
        int n=0;
        for (int i=0;i<j.length();i++){
             char k=j.charAt(i);
            if((k>'a')&&(k<'z')){
                m++;
            }
            if ((k>'A')&&(k<'Z')){
                n++;
            }
        }
        System.out.println("m的个数为"+m);
        System.out.println("n的个数为"+n);
        if (m!=n) {
            if (m>n) {
                System.out.println("m是较大者");
            }
            else
                System.out.println("n是较大者");
        }
    }
}
